import { createApp } from 'vue';
import App from './App.vue';
import { setupRouter } from './router';
import { setupStore } from './store';

import '@/styles/index.scss';

/**
 * 定义启动初始化函数
 */
const bootstrap = () => {
	const app = createApp(App);

	// 安装初始化store
	setupStore(app);

	// 安装初始化路由
	setupRouter(app);

	app.mount('#app');
};

// 启动
bootstrap();
